class Test {
    static void max() {
        int x = 2,y = 9, z = 1;
        if (x >= y) 
            if (x >= z)
                System.out.println("max = " + x);
            else 
                System.out.println("max = " + z);
        else
            if (y >= z)
                System.out.println("max = " + y);
            else
                System.out.println("max = " + z);
    }

    public static void main(String [] args) {
        max();
    }
}
